﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace frmViewItemCatalog
{
    public class ItemClass
    {
        private string itemName;
        private string itemID;
        private double itemPrice;
        private string categoryName;
        private int orderQuantity;
        private double totalAmount = 0.0;


        public string ItemName
        {
            get { return itemName; }
            set
            {
                itemName = value;
            }
        }

        public string ItemID
        {
            get { return itemID; }
            set
            {
                itemID = value;
            }
        }

        public double  ItemPrice
        {
            get { return itemPrice; }
            set
            {
                itemPrice = value;
            }
        }

        public string  CategoryName
        {
            get { return categoryName; }
            set
            {
                categoryName = value;
            }
        }

        public int  OrderQuantity
        {
            get { return orderQuantity; }
            set
            {
                orderQuantity = value;
            }
        }

        public double getTotalAmount(double itemPrice, int orderQuantity)
        {
            totalAmount = itemPrice * orderQuantity;
            return totalAmount;
        }


    }
}